import request from '@/utils/request'

// 查询安全台账列表
export function listAfSafetyLedger(query) {
  return request({
    url: '/security/afSafetyLedger/list',
    method: 'get',
    params: query
  })
}

// 查询安全台账详细
export function getAfSafetyLedger(id) {
  return request({
    url: '/security/afSafetyLedger/' + id,
    method: 'get'
  })
}

// 新增安全台账
export function addAfSafetyLedger(data) {
  return request({
    url: '/security/afSafetyLedger',
    method: 'post',
    data: data
  })
}

// 修改安全台账
export function updateAfSafetyLedger(data) {
  return request({
    url: '/security/afSafetyLedger',
    method: 'put',
    data: data
  })
}

// 删除安全台账
export function delAfSafetyLedger(id) {
  return request({
    url: '/security/afSafetyLedger/' + id,
    method: 'delete'
  })
}
